<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePaperFeedbacksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('paper_feedbacks', function (Blueprint $table) {
            $table->increments('id')->comment('问卷调查题库表');
            $table->integer('paper_librarie_id')->nullable()->comment('试卷ID')->default(0);
            $table->integer('subject_no')->nullable()->comment('题号')->default(0);
            $table->tinyInteger('is_multiple')->nullable()->comment('是否多选（0否；1是）')->default(0);
            $table->text('subject_title')->nullable()->comment('题目');
            $table->text('subject_select')->nullable()->comment('选项');
            $table->integer('region_id')->nullable()->comment('所属地区ID（1.北洸村）')->default(0);
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('paper_feedbacks');
    }
}
